<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>修改性别</title>
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <!-- No Baidu Siteapp-->
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--<meta name="format-detection" content="telephone = no" />-->
    <!-- Add to homescreen for Chrome on Android -->
    <meta name="mobile-web-app-capable" content="yes">
    <!-- Add to homescreen for Safari on iOS -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="修改性别" />
    <meta name="msapplication-TileColor" content="#090a0a">

    <link href="__ROOT__/static/home/css/userInfo/css/mui.min.css" rel="stylesheet"/>
    <link href="__ROOT__/static/home/css/userInfo/layer.mobile-v2.0/layer_mobile/need/layer.css" rel="stylesheet"/>
    <script src="__ROOT__/static/home/js/jquery-1.11.1.min.js"></script>
    <script src="__ROOT__/static/home/css/userInfo/layer.mobile-v2.0/layer_mobile/layer.js"></script>
    <link rel="stylesheet" href="__ROOT__/static/home/css/userInfo/css/top_nav.css" />

    <script>
        $(function () {
            $('#save').click(function(){
                var params ={};
                params.sex=$('.header-r').find('input:checked').val();
                $.ajax({

                            cache:true,
                            type:'POST',
                            url:"{:url('home/Userinfo/saveSex')}" ,
                            data: params,
                            async:false,
                            success:function(data){
                                if(data==1){
                                    layer.open({
                                        content: '修改成功'
                                        ,skin: 'msg'
                                        ,time: 2 //2秒后自动关闭
                                    });
                                }else{
                                    layer.open({
                                        content: '修改失败'
                                        ,skin: 'msg'
                                        ,time: 2 //2秒后自动关闭
                                    });
                                }
                            }

                        }
                )
            });
        })

    </script>
</head>
<body>
<div style="height: 50px;background-color: powderblue;">
    <div class="top_nav" style=""><a href="{:url('home/Userinfo/userInfo')}"><font color="black">< 返回</font></a></div>
    <div class="top_navC">修改性别</div>
    <div class="top_nav" id="save">保存</div>
</div>
<div class="member-top">
    <div class="header-r">
        <p>
            性别
        </p>
        <p>
            男<input name="sex1" type="radio" value="1" class="sex" checked="checked">
            女<input name="sex1" type="radio" value="2" class="sex">
            保密<input  name="sex1" type="radio" value="0" class="sex">
        </p>
    </div>
</div>



</body>
</html>
